package indi.dbfmp.oio.oauth.core.event.delete;

import indi.dbfmp.oio.oauth.core.event.update.GroupsUpdateEvent;
import lombok.RequiredArgsConstructor;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * </p>
 *
 * @author dbfmp
 * @name: DeleteUserEventListenerAdapter
 * @since 2021/3/14 下午8:57
 */
@RequiredArgsConstructor
@Component
public class DeleteUserEventListenerAdapter {

    private final DeleteUserEventListener deleteUserEventListener;

    @Async("backDataPool")
    @EventListener
    public void eventAction(DeleteUserEvent deleteUserEvent) {
        deleteUserEventListener.eventAction(deleteUserEvent);
    }

}
